﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;//引用

namespace E_Commerce.Domain.Entities
{
    /// <summary>
    /// 商品分类表
    /// </summary>
    [Table("ProductCategory")]
   public class ProductCategory
    {
        [Key]
        public int CateId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [StringLength(50)]
        public string CateName { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; }
    }
}
